home *** CD-ROM | disk | FTP | other *** search
/ MacWorld 2000 June (IDG) / Macworld_June_2000.iso / Shareware World / Utilities / Databasing / Troi-File-Plug-in2.0 / Self.fp3 (.txt) < prev    next >
Encoding:
FileMaker Pro Database  |  2000-03-21  |  33.0 KB  |  130 lines  |  [FMP3/FMP3]

  1.  Copyright 1984-1998 FileMaker, Inc. 
  2. HBAM2016AUG95
  3. Pro 3.0
  4. HBAM3016AUG95@
  5. kZo{s
  6. o{kZg9^
  7. g9kZs
  8. o{kZg9c
  9. g9kZo{s
  10. o{kZg9g9
  11. g9kZkZo{s
  12. o{kZkZ
  13. kZkZo{o{s
  14. o{o{s
  15. o{kZc
  16. g9kZo{w
  17. kZg9^
  18. g9o{s
  19. o{g9c
  20. 1st Quarter
  21. 2nd Quarter
  22. 3rd Quarter
  23. 4th Quarter
  24. 3/21/00
  25. _GCURRENT FILE PATH
  26. _gCurrent File PathB
  27. Get Path to CurrentFile
  28. Get Path to CurrentFileB
  29. Get a FileSpec
  30. Get Path to CurrentFile
  31. -------------
  32.     open file
  33. Get a FileSpec
  34. This script will get a fileSpecBN
  35. |("TrFile-SetDefaultType"
  36. TrFile-SetDefaultType
  37. |("TrFile-Get FileSpec Dialog"
  38.   "Please select a file to lock/unlock:")
  39. TrFile-Get FileSpec Dialog
  40. $Please select a file to lock/unlock:|DJ
  41. 2) <> "$$"
  42. ) = 1    
  43. Get Path to CurrentFileFCThis file shows how retrieve the path to the current database file.G
  44.  2000 Troi Automatisering  k
  45. Get Path To CurrentFilev
  46. Click on the button~
  47. _gCurrent File Path
  48. This is the command:
  49.        Set Field [ result,  External("TrFile-GetPathTo", 
  50.                 "-currentFileName |" & Status(CurrentFileName) &"|"& Status(CurrentFileSize))]  
  51. NOTE 1: This function works on Windows from FileMaker version 5. On Mac OS it works from FileMaker 4.0 and later. If you use it on Windows under a version earlier than FileMaker 5 an error code "$$-4215" (kErrInvalidFMPVersion) is returned.
  52. NOTE 2: When a file is hosted with FileMaker Server it can not return the path, in thi
  53. OBGs case it will return an error code "$$-43" (fnfErr = file not found). 
  54. Clear
  55. Close Demo File
  56. A    open file
  57. ) = 2    
  58. Get Path to CurrentFile
  59. A+This script will return the path of a file.B
  60. |("TrFile-GetPathTo"
  61. "-currentFileName |" & 
  62. ) &"|"& 
  63. TrFile-GetPathTo
  64. -currentFileName |    
  65. ) = 1  
  66.  2) <> "$$"    
  67. |("TrFile-FileSpec To FullPath"
  68. TrFile-FileSpec To FullPath
  69. -------------
  70. |("TrFile-FileSpec To FullPath"
  71. TrFile-FileSpec To FullPath
  72.     Helvetica
  73. Geneva
  74. Times New Roman
  75. A2This script will get let the user select a folder.B
  76. |("TrFile-Get FileSpec Dialog"
  77.  "Please specify a file:")
  78. TrFile-Get FileSpec Dialog
  79. Please specify a file:|C;
  80.  2) <> "$$"
  81. Make it a full pathE]
  82. |("TrFile-FileSpec To FullPath"
  83. TrFile-FileSpec To FullPath
  84. k{k|w
  85. [=g\gYg\.T
  86. g\c[_]c\ozc\g\[]g\c[o{c[g\[\g\24
  87. OYBw*
  88. _ZkZ[ZkZ_ZkZOZkZ[ZkZ_Zw
  89. k]k]{
  90. g\g=5
  91. 5sF6g]F
  92. o|g]k}
  93.     k]k]s
  94. o|g]{
  95. k]k]w
  96. Nv_:5
  97. g=g<_;w
  98. o\o}5
  99. k=JW1
  100. o\g{1
  101. g=k]5
  102. NvkZ2
  103. s}g]k\
  104. g=g<w
  105. g}k=o
  106. o^k{k}
  107. g]k=k
  108. g}k]o}
  109. Pro 3.0 - 4.0F!
  110. Sunday
  111. Monday
  112. Tuesday
  113.     Wednesday
  114. Thursday
  115. Friday
  116. Saturday
  117. January
  118. February
  119. March
  120. April
  121. August
  122.     September
  123. October
  124. November
  125. December
  126. 1st Quarter
  127. 2nd Quarter
  128. 3rd Quarter
  129. 4th Quarter
  130.